package router

import (
	"api-gatew/handler/api"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {

	router := gin.Default()

	router.POST("/longin", api.Longin)
	router.GET("/detail", api.EclassDetail)
	router.GET("/elist", api.EclassList)
	router.GET("/vlist", api.Videolist)
	router.GET("/vdetail", api.VDetail)
	router.GET("/homelist", api.EHomeList)
	router.POST("/add", api.EAdd)
	return router
}
